import { Module, Logger, Global } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { VideoModule } from './video/video.module';
import { UsersModule } from './users/users.module';
import { ColorModule } from './color/color.module';
import { FactoryModule } from './factory/factory.module';
import { LogModule } from './log/log.module';
import { PullModule } from './pull/pull.module';
import { LogsModule } from './logs/logs.module';
import * as config from 'config';

console.log(config.get('database'));

@Global()
@Module({
  imports: [
    VideoModule,
    UsersModule,
    ColorModule,
    FactoryModule,
    LogModule,
    PullModule,
    LogsModule,
  ],
  controllers: [AppController],
  providers: [AppService, Logger],
  exports: [Logger],
})
export class AppModule {}
